package com.cn.dao;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class BookDaoTwo implements InitializingBean, DisposableBean {
    public BookDaoTwo(){
        System.out.println("无参构造方法，创建BookDaoTwo");
    }
    @Override
    public void destroy() throws Exception {
        System.out.println("销毁");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("初始化");
    }
}
